layui.use('element', function(){
  var element = layui.element;
});
layui.use(['layer','jquery'], function(){
  var layer = layui.layer
  ,$ = layui.jquery;
  $('.container-fluid,.layui-hotlist').on('click','.layui-count',function(){
  	var picnum = $(this).attr('data-num');
    layer.tips('共'+ picnum +'张图片', this, {
  	tips: [1, '#E74291'],
  	time: 1000
	});
  });
  $('.container-fluid').on('mouseover','.layui-actions',function(){
  	$(this).addClass('on');
  });
  $('.container-fluid').on('mouseout','.layui-actions',function(){
  	$(this).removeClass('on');
  });
});